package com.home.fansea.entity;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Projectname: MiniXYIot
 * @Filename: DeviceInfo
 * @Author: FANSEA
 * @Data:2024/5/27 17:09
 */
@Data
public class DeviceInfo {
    /*{
          deviceId : 1234567890,
          temp：23.5,
          hum：18.65,
          luminosity: 56.8,
          time：1234567890
      }*/
    private int deviceId;

    private String deviceName;

    private String deviceType;

    private double temp;

    private double hum;

    private double luminosity;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;
}
